package com.hjj.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;


import java.util.Date;

@TableName("t_health_plan")
@Data
public class HealthPlan {

    private Integer id;

    private String name;

    private String uid;

    private String goal;

    private double quantity = 0;

    private boolean isOngoing = false; // 是否正在执行

    @JsonSerialize(using = CustomDateSerializer.class)
    private Date startDate;

    @JsonSerialize(using = CustomDateSerializer.class)
    private Date endDate;

    private int dailyCalories;
}
